This is the first patch to move the console code out of Xend and into a
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 2 Aug 2005 12:18:15 +0000 (12:18 +0000)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 2 Aug 2005 12:18:15 +0000 (12:18 +0000)
separate daemon.  In this patch I've included the daemon and a
front-end.  I've also have the console code removed from Xend locally
but I wanted to clarify a few things first before submitting that.

Here's how it works:

1) Daemon sits on control channel (via xcs) waiting for console messages
2) Buffers all console data received
3) Publishes the location of a tty that can be used for reading in
/console/<domid>/tty
4) Reads a value from the store to determine what the limit of console
data should be (/console/<domid>/limit) to prevent DoS attacks

Using it is quite simple, just run consoled and use the xc_console
program to connect to the console.  It uses syslog for logging.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
tools/Makefile
tools/Rules.mk

index 917356fedb9dc1ea6a5f4c3c168d4f755bad8630..629294e7768a52df9bc67e8beb6eddb4e5bd3ca8 100644 (file)
@@ -13,6 +13,7 @@ SUBDIRS += xcutils
 #SUBDIRS += pygrub
 SUBDIRS += firmware
 SUBDIRS += security
+SUBDIRS += consoled
 
 .PHONY: all install clean check check_clean ioemu eioemuinstall ioemuclean
 
index 4f5f8f80c384ce8a3095d71e82df99ebb162e611..90ccf140645bd2dce5f92ae91e6749a6a9a6541c 100644 (file)
@@ -4,6 +4,8 @@ include $(XEN_ROOT)/Config.mk
 
 XEN_XC             = $(XEN_ROOT)/tools/python/xen/lowlevel/xc
 XEN_LIBXC          = $(XEN_ROOT)/tools/libxc
+XEN_XCS            = $(XEN_ROOT)/tools/xcs
+XEN_XENSTORE       = $(XEN_ROOT)/tools/xenstore
 
 ifeq ($(XEN_TARGET_ARCH),x86_32)
 CFLAGS  += -m32 -march=i686